package cn.school.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 参会人员状态表
 * @TableName meeting_status
 */
@TableName(value ="meeting_status")
@Data
public class MeetingStatus implements Serializable {
    /**
     * 参会人员状态id
     */
    @TableId
    private Long meetingStatusId;

    /**
     * 参会人员状态
     */
    private String meetingStatusName;

    /**
     * 参会人员状态改变时间
     */
    private Date meetingStatusTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MeetingStatus other = (MeetingStatus) that;
        return (this.getMeetingStatusId() == null ? other.getMeetingStatusId() == null : this.getMeetingStatusId().equals(other.getMeetingStatusId()))
            && (this.getMeetingStatusName() == null ? other.getMeetingStatusName() == null : this.getMeetingStatusName().equals(other.getMeetingStatusName()))
            && (this.getMeetingStatusTime() == null ? other.getMeetingStatusTime() == null : this.getMeetingStatusTime().equals(other.getMeetingStatusTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMeetingStatusId() == null) ? 0 : getMeetingStatusId().hashCode());
        result = prime * result + ((getMeetingStatusName() == null) ? 0 : getMeetingStatusName().hashCode());
        result = prime * result + ((getMeetingStatusTime() == null) ? 0 : getMeetingStatusTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", meetingStatusId=").append(meetingStatusId);
        sb.append(", meetingStatusName=").append(meetingStatusName);
        sb.append(", meetingStatusTime=").append(meetingStatusTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}